import {hrAjax as proFetch} from 'src/hrpub/common/utils/utils';

export default function getPsnSubData(areaCode, callback) {

    let postData = {
        areaCode,
        func_type: 3,
        pk_psnjob: this.state.detailData.psnjobForm.hi_psnjob_h.rows[0].values.pk_psnjob.value
    };

    return proFetch({
        url: '/nccloud/hrhi/psndoc/PsndocLoadSubDataAction.do',
        body: postData,
    })
        .then((res) => {
            if (res.success) {
                callback(res.data);
            }
        });
}
